import { createApp, } from 'vue'
import { createPinia } from 'pinia'
import http from './apis/https'
import vue3videoPlay from 'vue3-video-play' // 引入组件
import 'vue3-video-play/dist/style.css' // 引入css
import App from './App.vue'
import router from './router'
import "./assets/base.css"


// 引入element-plus组件库
import ElementPlus from 'element-plus'
// element-plus的全局样式
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)

//全局配置axios对象
app.config.globalProperties.$https=http
app.use(ElementPlus)
app.use(createPinia())
app.use(router)
app.use(vue3videoPlay)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.mount('#app')
